package com.first.myvideo.minterface;

import com.first.myvideo.video.MyVideoPlayer;

import java.util.LinkedHashMap;

/**
 * Created by Administrator on 2018/4/23.
 */

public interface MyVideoControlInterface {

    MyVideoPlayer setTitle(String title);

    String title();

    MyVideoPlayer setPath(String path);

    MyVideoPlayer setPath(LinkedHashMap<String, String> pathMap);

    String path();

    void start(boolean isAutoPlay);

    void restart(boolean isFromtoBegin);

    void pause();

    int getDuration();

    int getCurrentPosition();

    void seekTo(int var1);

    boolean isIdle();

    boolean isPreparing();

    boolean isPrepared();

    boolean isPlaying();

    boolean isBufferingPlaying();

    boolean isPaused();

    boolean isBufferingPaused();

    boolean isError();

    boolean isCompleted();

    boolean isSeekToed();

    int getCurrPlayStatus();

    int getBufferPercentage();

    boolean exitFullScreen();

    boolean enterFullScreen();

    int currModeStatus();

    int getMaxVolume();

    void setVolume(int volume);

    int getVolume();

    void savePlayProgress(String key, long result);

    long getPlayProgress(String key);

}
